import request from '@/utils/request'

// export function getList(params) {
//   return request({
//     url: '/vue-admin-template/teacher/list',
//     method: 'get',
//     params
//   })
// }

export default {
  getById(id) {
    return request({
      url: `/edu/teacher/get/${id}`,
      method: 'get'
    })
  },
  getList(params) {
    return request({
      url: '/edu/teacher/list',
      method: 'get',
      params
    })
  },
  getListPage(current, limit, query) {
    return request({
      url: `/edu/teacher/page/${current}/${limit}`,
      method: 'post',
      data: query
    })
  },
  deleteById(id) {
    return request({
      url: `/edu/teacher/delete/${id}`,
      method: 'delete'
    })
  },
  add(model) {
    return request({
      url: `/edu/teacher/add`,
      method: 'post',
      data: model
    })
  },
  update(model) {
    return request({
      url: `/edu/teacher/update`,
      method: 'post',
      data: model
    })
  }
}
